package com.ssy.lingxi.contract.esign.exception;

import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

@Builder
@Getter
@Setter
public class EsignError {

    /**
     * 错误码
     */
    private Integer errCode;

    /**
     * 错误描述
     */
    private String errMsg;

    private String json;

    @Override
    public String toString() {
        if (json == null) {
            return "错误代码: " + this.errCode + " 错误信息: " + this.errMsg;
        }
        return "错误代码: " + this.errCode + " 错误信息: " + this.errMsg + "e签宝原始报文: " + this.json;
    }
}
